package spring;

import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;
import spring.bf.DefaultSingletonBeanRegistryTest;

@Component
public class SingletonBean implements ApplicationListener<ApplicationEvent>, BeanNameAware {

	@Autowired
	DefaultSingletonBeanRegistryTest defaultSingletonBeanRegistryTest;

	@Override
	public void onApplicationEvent(ApplicationEvent event) {
		//System.out.println(event);
	}

	@Override
	public void setBeanName(String name) {
		//System.out.println(name);
	}
}
